<?php 
/**
 * 后台控制器
 * @author 阿柱 <422852954@qq.com>
 */
class IndexController extends AuthController{
    /**
     *   默认访问方法
     */
    public function index(){	       

		$this->display('index.html');

    }
	
	public function welcome(){
		
		$info=array(
			'ware' => $_SERVER['SERVER_SOFTWARE'],
			'version' => PHP_VERSION,
			'ip' => $_SERVER['SERVER_ADDR'],
			'dbInfo' => mysql_get_client_info(),
			'adminUser' => $_SESSION['adminUser'],
			'time' => date("Y-m-d"),
			'loginIp' => $_SERVER['REMOTE_ADDR'], 
		); 
		$this->assign('info', $info);
		$this->display('welcome.html');
		
	}
	
	

	
	
 }
 

 
 
 
 
 
 


 
 
 
 
 
 

 

 
 
 
 
 
 



 ?>